package org.example.ruangong.util;

import javax.mail.*;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
import java.util.Properties;

public class EmailUtil {

    public static boolean sendEmail(String toEmail, String subject, String content) {
        // 这里需要配置真实的邮件服务器
        // 当前只是模拟发送邮件成功
        System.out.println("Sending email to: " + toEmail);
        System.out.println("Subject: " + subject);
        System.out.println("Content: " + content);
        return true; // 模拟发送成功
    }
}
